
package net.swa.dewei.beans.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/***
 * 电池价格调整信息记录
 * @author dawei
 *
 */
@Entity
@Table(name = "t_Price_Change_Log")
public class PriceChangeLog
{
    //PK
    private Long id;

    /**省**/
    private String province;

    /**市*/
    private String city;

    /**县**/
    private String town;

    /**品牌**/
    private String pinPai;

    /**型号*/
    private String xingHao;

    /**创建时间**/
    private String crateDate;

    private double price;

    /**all表示更新统一价格，part表示更新自定义区域价格**/
    private String type;

    /**1上调，-1下调 ，常量定义**/
    private String changeType;

    /***
     * 更新记录数
     */
    private Integer num;

    /**用户登录名**/
    private String userid;

    //客户机器ip
    private String ip;

    private String sqlStr;

    @GenericGenerator(name = "generator", strategy = "native")
    @Id
    @GeneratedValue(generator = "generator")
    @Column(name = "id", unique = true, nullable = false)
    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public String getProvince()
    {
        return province;
    }

    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getCity()
    {
        return city;
    }

    public void setCity(String city)
    {
        this.city = city;
    }

    public String getTown()
    {
        return town;
    }

    public void setTown(String town)
    {
        this.town = town;
    }

    public String getCrateDate()
    {
        return crateDate;
    }

    public void setCrateDate(String crateDate)
    {
        this.crateDate = crateDate;
    }

    public double getPrice()
    {
        return price;
    }

    public void setPrice(double price)
    {
        this.price = price;
    }

    public String getType()
    {
        return type;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    public String getChangeType()
    {
        return changeType;
    }

    public void setChangeType(String changeType)
    {
        this.changeType = changeType;
    }

    public Integer getNum()
    {
        return num;
    }

    public void setNum(Integer num)
    {
        this.num = num;
    }

    public String getUserid()
    {
        return userid;
    }

    public void setUserid(String userid)
    {
        this.userid = userid;
    }

    public String getIp()
    {
        return ip;
    }

    public void setIp(String ip)
    {
        this.ip = ip;
    }

    public String getPinPai()
    {
        return pinPai;
    }

    public void setPinPai(String pinPai)
    {
        this.pinPai = pinPai;
    }

    public String getXingHao()
    {
        return xingHao;
    }

    public void setXingHao(String xingHao)
    {
        this.xingHao = xingHao;
    }

    public String getSqlStr()
    {
        return sqlStr;
    }

    public void setSqlStr(String sqlStr)
    {
        this.sqlStr = sqlStr;
    }

    @Override
    public String toString()
    {
        return "PriceChangeLog [changeType=" + changeType + ", city=" + city + ", crateDate=" + crateDate + ", id="
                + id + ", ip=" + ip + ", num=" + num + ", pinPai=" + pinPai + ", price=" + price + ", province="
                + province + ", sqlStr=" + sqlStr + ", town=" + town + ", type=" + type + ", userid=" + userid
                + ", xingHao=" + xingHao + "]";
    }

}
